require 'apr.oo'
require 'moonunit'

test_oo = moonunit.TestCase:new()

function test_oo:test_isinstance()
    local testclass = apr.oo.Class(function(self) self.foo = 'bar' end)
    local testinst = testclass.new()
    assert(testinst.foo == 'bar')
    assert(apr.oo.isinstance(testinst, testclass))
end
